package crmsystem.com.service.impl;

import crmsystem.com.utils.Query;
import crmsystem.com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import crmsystem.com.dao.SalesforecastDao;
import crmsystem.com.entity.SalesforecastEntity;
import crmsystem.com.service.SalesforecastService;


@Service("salesforecastService")
public class SalesforecastServiceImpl extends ServiceImpl<SalesforecastDao, SalesforecastEntity> implements SalesforecastService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SalesforecastEntity> page = this.page(
                new Query<SalesforecastEntity>().getPage(params),
                new QueryWrapper<SalesforecastEntity>()
        );

        return new PageUtils(page);
    }

}